package com.example.scala.chapter2

/**
 *
 * Description:
 *
 * Create by lucienoz on 2021/10/13.
 * Copyright © 2021 lucienoz. All rights reserved.
 */
object chapter05 {
  def main(args : Array[String]) : Unit = {
    val foo : String = "foo"
    val bar : String = "bar"

    //按行打印变量
    println(foo+bar) //foobar

    //不换行打印变量
    print(foo)
    print(foo)
    print(bar) //foofoobar

    println()
    //使用占位符打印变量，使用规则同C语言

    printf("foo=%s\n",foo)


  }

}
